<template>
 <div class="container">
    <!-- <div class="box">
      <header class="header">header</header>
      <div class="content">内容</div>
    </div> -->
    <router-view></router-view>
    <router-view name="hunt"></router-view>
    <router-view name="play"></router-view>
    <router-view name="footer"></router-view>
  </div>
</template>

<style lang="scss">
// 网易云后端数据
// git@gitee.com:Aaron_liu_kk/admin-music.git
@import '@/lib/reset.scss';
.container {
  @include rect(100%, 100%);
  @include flexbox();
  @include flex-direction(column);
  .box {
    @include flex();
    @include rect(100%, auto);
    @include overflow(auto); // 部分浏览器需要加
    @include flexbox();
    @include flex-direction(column);
    .header {
      @include rect(100%, 0.44rem);
      @include background-color(#f66);
      @include color(#fff);
      @include font-size(18px);
    }
    .content {
      @include flex();
      @include rect(100%, auto);
      @include overflow(auto);
    }
  }
  .footer {
    @include rect(100%, 0.5rem);
    border-top: 1px solid #cccccc;
    ul {
      @include rect(100%, 100%);
      @include flexbox();
      li {
        @include flex(); // flex: 1;
        @include rect(auto, 100%);
        // 水平垂直居中
        @include flexbox();
        @include flex-direction(column);
        @include justify-content();
        @include align-items();
        @include color(rgba(204, 204, 204, 0.815));
        &.router-link-exact-active,.router-link-active {
          @include color(#009966);
        }

        span {
          @include font-size(16px);
        }
        p {
          @include font-size(3px);
        }
      }
    }
  }
}
.fade-enter {
  opacity: 0;
}
.fade-enter-active {
  transition: all 3s;
}
.fade-enter-to {
  opacity: 1;
}
.fade-leave {
  opacity: 1;
}
.fade-leave-active {
  transition: all 0s;
}
.fade-leave-to {
  opacity: 0;
}

.slide-enter {
  transform: translateX(100%);
}
.slide-enter-active {
  transition: all 3s;
}
.slide-enter-to {
  transform: translateX(0);
}
.slide-leave {
  transform: translateX(0);
}
.slide-leave-active {
  transition: all 0s;
}
.slide-leave-to {
  transform: translateX(-100%)
}
</style>
